package com.ynding.cloud.auth.server.admin.service.api.impl;

import com.ynding.cloud.auth.api.admin.api.IMenuApiService;
import com.ynding.cloud.auth.api.admin.domain.MenuDO;
import com.ynding.cloud.auth.server.admin.service.IMenuService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2021/9/10
 **/
@DubboService(version = "1.0.0", timeout = 5000)
@Slf4j
@RequiredArgsConstructor
public class MenuApiServiceImpl implements IMenuApiService {

    private final IMenuService menuService;

    @Override
    public List<MenuDO> findAll() {
        List<MenuDO> menus = menuService.findAll();
        return menus;
    }
}
